﻿using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Net;
using System.Text;

namespace XHXTools
{
    /// <summary>
    /// ftp信息实体类
    /// </summary>
    public class FtpNetModel
    {
        /// <summary>
        /// 连接凭据
        /// </summary>
        public NetworkCredential GetNetwork { get; set; }

        /// <summary>
        /// ip地址
        /// </summary>
        public string  IP { get; set; }

        /// <summary>
        /// FTP端口
        /// </summary>
        public int FTP_PORT { get; set; }

        /// <summary>
        /// 文件对象
        /// </summary>
        public IFormFile  IFile { get; set; }

        /// <summary>
        /// 无参构造函数
        /// </summary>
        public FtpNetModel() { }

        /// <summary>
        /// ftp信息有参构造函数
        /// </summary>
        /// <param name="ip">ip地址</param>
        /// <param name="ftp_port">ftp端口</param>
        /// <param name="credential">ftp用户连接凭据</param>
        public FtpNetModel(string ip,int ftp_port, NetworkCredential credential)
        {
            IP = ip;
            FTP_PORT = ftp_port;
            GetNetwork = credential;
        }

    }
}
